#include "StrUtil.h"

#include <stdlib.h>

std::string StrUtil::SerchPath(const std::string& pTargetFileName)
{
	char lDrive[3];
	char lDirectory[256];
	_splitpath(pTargetFileName.c_str(), lDrive, lDirectory, NULL, NULL);

	//char lTexPath[256] = { 0 };
	//strcpy(lTexPath, lDrive);
	//strcat(lTexPath, lDirectory);

	std::string lTexPath;
	lTexPath.clear();
	lTexPath = lDrive;
	lTexPath += lDirectory;

	return lTexPath;
}